package com.xbongbong.paas.pojo.imports;

import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.pojo.FieldAttrEntityForImport;
import com.xbongbong.paas.pojo.dto.FormDataAddDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Excel标题
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/4/25 19:21
 */
@Setter
@Getter
@ToString
public class CoverExcelDataPojo implements Serializable {

    private FormDataAddDTO formDataAddDTO;

    private Map<Long, List<PaasFormDataEntityExt>> paymentMap;

    private Map<Long, List<PaasFormDataEntityExt>> payPlanMap;

    private Map<Long, List<PaasFormDataEntityExt>> contactMap;

    private Long dataId;

    private List<FieldAttrEntityForImport> fieldAttrEntityForImportList;
    /**
     * 是否支持覆盖的数据 覆盖产品专用
     */
    private Map<Long, Boolean> isCoverMap;
    /**
     * key:refId + _ + productId value: subProductId 用于覆盖导入找到关联表数据id
     */
    private Map<String, List<Long>> productMap;

    /**
     * 出入库数量 用来区分是否有下游单据
     */
    private Integer inStockNum;

    private Set<String> unitKey;

}
